package com.qingcheng.service.comment;

import com.qingcheng.entity.PageResult;
import com.qingcheng.pojo.comment.AllComment;
import com.qingcheng.pojo.comment.Comment;

import java.util.List;
import java.util.Map;
import com.qingcheng.entity.PageResult;
import com.qingcheng.pojo.comment.Comment;

import java.util.*;

/**
 * comment业务逻辑层
 */
public interface CommentService {


    public List<Comment> findAll();


    public PageResult<Comment> findPage(int page, int size);


    public List<Comment> findList(Map<String, Object> searchMap);


    public PageResult<Comment> findPage(Map<String, Object> searchMap, int page, int size);


    public Comment findById(String id);

    public void add(Comment comment);


    public void update(Comment comment);


    public void delete(String id);

    /**
     *  对评论进行排序
     * @return
     */
    public List<AllComment> sort(String skuId);


    /**
     * 根据Id查询该评论
     * @param id
     * @return
     */
    public Comment findOneById(String id);
    public List<Map<String,Object>> sort(Map searchMap);
}
